#include "MediaTask.h"

namespace cm_media
{
    MediaTask::MediaTask()
    {

    }

    MediaTask::~MediaTask()
    {

    }

    void MediaTask::start()
    {
        m_thread.start(*this);
    }

    int MediaTask::enqueueNotification( BaseNotification* p_n, int priority )
    {
        m_notifiacations.enqueueNotification( p_n, priority );

        return CmMediaSucess;
    }

    Notification * MediaTask::waitDequeueNotification( long milliseconds )
    {
        return m_notifiacations.waitDequeueNotification( milliseconds );
    }
}